﻿using ExcelTools.Core.NPOI.Enum;
using NPOI.SS.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExcelTools.Core.NPOI.Model
{
    /// <summary>
    /// 单元格对象
    /// </summary>
    public class ExcelColumn
    {
        public string GetKeys()
        {
            return this.Type.ToString() + "_" + this.IsBold.ToString() + "_" + this.Algin.ToString() + "_" + this.IsHeader.ToString();
        }

        /// <summary>
        /// 是否为标题
        /// </summary>
        public bool IsHeader { get; set; }

        /// <summary>
        /// 单元格内容的值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 单元格类型的值类型
        /// </summary>
        public ColumnTypeEnum Type { get; set; }

        /// <summary>
        /// 是否加粗
        /// </summary>
        public bool IsBold { get; set; }

        /// <summary>
        /// 单元格的对其方式
        /// </summary>
        public HorizontalAlignmentEnum Algin { get; set; }
    }
}
